<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  
  
  
                <script type="text/javascript">
                    try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
                    
                </script>

                <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                   <!--  <button class="btn btn-success shortcut01"  disabled="disabled" >
                            <i class="ace-icon fa fa-signal"></i>
                        </button>

                     <button class="btn btn-info shortcut02"  disabled="disabled" >
                         <i class="ace-icon fa fa-pencil"></i>
                     </button> -->
                    <c:forEach items="${menu }" var="m" varStatus="i">
                    	<button class="btn btn-${color[i.index] } shortcut0${i.index+1 }"  title="${m.name }">
                            <i class="${m.icon }"></i>
                        </button>
                    </c:forEach>
                       <!--  <button class="btn btn-success shortcut01"  disabled="disabled">
                            <i class="ace-icon fa fa-signal"></i>
                        </button>

                        <button class="btn btn-info shortcut02"  disabled="disabled">
                            <i class="ace-icon fa fa-pencil"></i>
                        </button>

                        <button class="btn btn-warning shortcut03"  title="业务管理">
                            <i class="ace-icon fa fa-users"></i>
                        </button>

                        <button class="btn btn-danger shortcut04"  title="系统管理">
                            <i class="ace-icon fa fa-cogs"></i>
                        </button> -->
                    </div>

                   <!--  <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                        <span class="btn btn-success shortcut01"></span>

                        <span class="btn btn-info shortcut02"></span>

                        <span class="btn btn-warning shortcut03"></span>

                        <span class="btn btn-danger shortcut04"></span>
                    </div> -->
                </div><!-- #sidebar-shortcuts -->
                
                
                <c:forEach items="${menu }" var="m" varStatus="i">
                <ul class="nav nav-list navlist0${i.index+1 }" id="navlist0${i.index+1 }" style="display:none">
	                <c:forEach items="${m.menus }" var="sm">
	                 <c:if test="${sm.permissions.status=='1'}">
	                 <c:choose>
		                 <c:when test="${empty sm.menus }">
		                 	<shiro:hasPermission name="${sm.permissions.element }">
		                 	<li>
		                        <a href="<c:if test="${not empty sm.url}">${ctx}${sm.url }</c:if>">
		                            <i class="${sm.icon}"></i>
		                            <span class="menu-text"> ${sm.name}</span>
		                        </a>
		                    </li>
		                    </shiro:hasPermission>
		                 </c:when>
		                 <c:otherwise>
		                 <shiro:hasPermission name="${sm.permissions.element }">
				               <li class="">
				               
								<a href="<c:if test="${not empty sm.url}">${ctx}${sm.url }</c:if>" class="dropdown-toggle">
									<i class="${sm.icon}"></i>
									<span class="menu-text"> ${sm.name}</span>
		
									<b class="arrow fa fa-angle-down"></b>
								</a>
								<b class="arrow"></b>
								<c:if test="${not empty sm.menus}">
								<ul class="submenu">
									<c:forEach items="${sm.menus }" var="tm">
									 <c:if test="${tm.permissions.status=='1'}">
									 <shiro:hasPermission name="${tm.permissions.element }">
										<li class="">
											<a href="<c:if test="${not empty tm.url}">${ctx}${tm.url }</c:if>">
												<i class="${tm.icon}"></i>
												${tm.name}
											</a>
			
											<b class="arrow"></b>
										</li>
										</shiro:hasPermission>
										</c:if>
									</c:forEach>
								</ul>
								</c:if>
							</li>
							</shiro:hasPermission>
		                 </c:otherwise>
	                 </c:choose>
                    
					
					</c:if>
					</c:forEach>
                </ul><!-- /.nav-list -->
                </c:forEach>

                <div class="sidebar-collapse" id="sidebar-collapse">
                    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
                </div>

                <script type="text/javascript">
                    try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
                </script>